<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>{:__('Money')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="input-group">
                <input id="c-money" data-rule="required" onkeyup="this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'')" onafterpaste="this.value=this.value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'')" class="form-control" step="0.01" name="row[money]" type="number" value="">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="faupload1-image" class="btn btn-success" onclick="withdrawals()">全部提現</button></span>
                    </div>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>開戶銀行名稱:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bank_name" data-rule="required;length(~50)" class="form-control" name="row[bank_name]" type="text" value="{$bank_name}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>{:__('Bank_account')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bank_account" data-rule="required;length(~50)" class="form-control" name="row[bank_account]" type="text" value="{$bank_account}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><a style="color: red">*</a>{:__('Bank_account_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bank_account_name" data-rule="required;length(~10)" class="form-control" name="row[bank_account_name]" type="text" value="{$bank_account_name}">
        </div>
    </div>
    
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
<script type="text/javascript">
var now_cash = {$now_cash};
    function withdrawals() {
        $("#c-money").val(now_cash);
    }
</script>